package com.aliyun.messagemgt.dto.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 消息模板待办审批返回类
 *
 * @author byp
 * @date 2020/8/13
 */
@ApiModel(value = "PendingEventForTemplateVO", description = "消息模板待办审批返回类")
@Data
@Accessors(chain = true)
public class PendingEventForTemplateVO {

    @ApiModelProperty(value = "待处理事件ID")
    private Integer pendingEventId;

    @ApiModelProperty(value = "事件类型 3-消息模板审批")
    private Integer eventType;

    @ApiModelProperty(value = "具体的事件ID")
    private Integer specificEventId;

    @ApiModelProperty(value = "模板ID")
    private String templateId;

    @ApiModelProperty(value = "模板名称")
    private String name;

    @ApiModelProperty(value = "模板类型 1-APP模板 2-短信模板")
    private Integer type;

    @ApiModelProperty(value = "使用场景描述")
    private String description;

    @ApiModelProperty(value = "模板标题")
    private String title;

    @ApiModelProperty(value = "管理员")
    private String owner;

    @ApiModelProperty(value = "管理员编码")
    private String ownerCode;

    @ApiModelProperty(value = "归属部门编码")
    private String ownerDept;

    @ApiModelProperty(value = "归属部门名称")
    private String ownerDeptName;

    @ApiModelProperty(value = "审批状态 0 未审核 -1 审核未通过 1 审核通过")
    private Integer auditStatus;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeCreate;

    @ApiModelProperty(value = "审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeHandle;
}
